home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / SAT 2.3a1 / SATminimal ƒ / SATminimal.c < prev    next >
Encoding:
Text File  |  1994-11-02  |  1.5 KB  |  34 lines  |  [TEXT/KAHL]

  1.     InitDialogs (nil);        /* no restart proc */
  2.     InitCursor ();
  3.  
  4.     MoreMasters ();
  5.     MoreMasters ();
  6. /* End of standard initializations */
  7.  
  8. /* Initialize, using PICTs 128 or 129 as background, Classic-sized drawing area. */
  9.     SATInit(128, 129, 512, 322);
  10.  
  11. /* Initialize sprite unit(s), by preloading faces and sounds */
  12.     InitMySprite();
  13.  
  14. /* Make a few sprites */
  15.     ignoreSp = SATNewSprite(0, 50, 50, SetupMySprite);
  16.     ignoreSp = SATNewSprite(0, 100, 100, SetupMySprite);
  17.     ignoreSp = SATNewSprite(0, 125, 120, SetupMySprite);
  18.     ignoreSp = SATNewSprite(0, 150, 140, SetupMySprite);
  19.     ignoreSp = SATNewSprite(0, 200, 180, SetupMySprite);
  20.     ignoreSp = SATNewSprite(0, 250, 200, SetupMySprite);
  21.     ignoreSp = SATNewSprite(0, 300, 250, SetupMySprite);
  22.  
  23. /* Run until the user clicks the mouse button  */
  24.     while (!Button())
  25.     {
  26.         L = TickCount();
  27.         SATRun(true); /* Run the animation */
  28.         while (L > TickCount() - 2L) /* Speed limit */
  29.             ;
  30.     }
  31.     SATSoundShutup(); /* Always make sure the channel is de-allocated */
  32. }
  33.